package com.rongxun.hbwallet.mvp.contract;

import com.rongxun.base.IBase;
import com.rongxun.hbwallet.model.Response;
import com.rongxun.hbwallet.model.bean.ImageCode;
import com.rongxun.hbwallet.model.bean.User;

import io.reactivex.Observable;
import okhttp3.RequestBody;

/**
 * 创建者     庄丰泽
 * 创建时间   2018/8/17 14:21
 * 描述	      忘记密码
 */
public interface IForget extends IBase {
    interface IView extends IBase.IView {
        void showImageView(ImageCode code);

    }

    interface IPresenter extends IBase.IPresenter {
        void getImageCode(String mobile);
        void getMobileNumber(String captchaCode,String captchaId,String country,String mobile);
        void findPassword(String captcha,String mode,String newPassword,String oldPassword);
    }

    interface IModel extends IBase.IModel{
        Observable<Response<ImageCode>> checkImgVerificationCode();
        Observable<Response<User>> getMobileCode(RequestBody route);
        Observable<Response<User>> findPassword(RequestBody route);
    }
}
